Dynamic provisioning for filtering and consolidating events

ABSTRACT

Systems and methods provide identification services over a distributed network. Systems and methods provide the tools to receive data from reader devices, process the received data, and provide the processed data to users. Enhanced event handling and dynamic service provisioning enable robust and flexible deployment of identification services in a distributed network.

RELATED APPLICATIONS

This application is a continuation-in-part of U.S. patent application Ser. No. 10/767,345 for Dynamic Provisioning of Identification Services in a Distributed System, filed Jan. 30, 2004 and incorporated herein by reference. This application also relates to U.S. patent application Ser. No. 09/947,528 for Dynamic Provisioning of Service Components in a Distributed System, filed Sep. 7, 2001, U.S. patent application Ser. No. 09/947,549 for Distributed Metric Discovery and Collection in a Distributed System, filed Sep. 7, 2001, and U.S. patent application Ser. No. 10/390,895 for Systems and Methods for Providing Dynamic Quality of Service for a Distributed System, filed Mar. 19, 2003, which are relied upon and incorporated herein by reference.

FIELD OF THE INVENTION

This invention relates to techniques for dynamically filtering and consolidating events from identification service providers and, more particularly, to methods and systems for provisioning services to process identification data received from a device.

BACKGROUND OF THE INVENTION

Distributed systems today enable a device connected to a communications network to take advantage of services available on other devices located throughout the network. Each device in a distributed system may have its own internal data types, its own address alignment rules, and its own operating system. To enable such heterogeneous devices to communicate and interact successfully, developers of distributed systems can employ a remote procedure call (RPC) communication mechanism.

RPC mechanisms provide communication between processes (e.g., programs, applets, etc.) running on the same machine or different machines. In a simple case, one process, i.e., a client, sends a message to another process, i.e., a server. The server processes the message and, in some cases, returns a response to the client. In many systems, the client and server do not have to be synchronized. That is, the client may transmit the message and then begin a new activity, or the server may buffer the incoming message until the server is ready to process the message.

The Java™ programming language is an object-oriented programming language frequently used to implement such a distributed system. A program written in the Java programming language is compiled into a platform-independent format, using a bytecode instruction set, which can be executed on any platform supporting the Java virtual machine (JVM). The JVM may be implemented on any type of platform, greatly increasing the ease with which heterogeneous machines can be federated into a distributed system.

The Jini™ architecture has been developed using the Java programming language to enable devices in a distributed system to share services using remote method invocation (RMI). Traditional Jini systems use RMI to enable a client device to request and receive a service provided by a server device on a remote machine. While conventional Jini systems provide a basic architecture for providing services in a distributed system, they do not provide tools specifically directed to providing complex services. Current systems do not address provisioning a service, such as application software, to make it available to the distributed system in the first place. Furthermore, conventional systems do not consider the requirements of a specific service before provisioning the service to make it available in the distributed system.

For example, one such distributed system may include reader devices using Radio Frequency Identification (RFID) technology, and services that receive and process identification data from the reader devices and synthesize the processed data into meaningful business data. Although RFID technology is well known, conventional RFID systems do not operate satisfactorily in a distributed system, where network changes, such as the failure of a computer resource or the introduction of a new resource, are common. Furthermore, conventional RFID systems do not discover reader devices dynamically. It is therefore desirable to provide RFID systems that operate in a distributed, robust, reliable, scalable manner.

SUMMARY OF THE INVENTION

Methods and systems consistent with the present invention provide identification services over a distributed network. Systems and methods provide the tools to receive data from reader devices, process the received data, and provide the processed data to users. Enhanced event handling and dynamic service provisioning enable robust and flexible deployment of identification services in a distributed network.

According to an aspect of the invention, a method provides an identification service in a distributed system, comprising providing a set of one or more service elements, each service element including an adapter, a filter, and a logger and receiving, by a filter, criteria in accordance with predetermined instructions and receiving, by an adapter, identification data from a reader. The identification data is provided by the adapter to a filter and the filter processes the identification data based on the criteria. The processed data is provided by the filter to a logger, and the logger provides notification of the processed data. The service elements are monitored to determine whether any service element fails.

In accordance with another aspect of the invention, a method provides an identification service in a distributed system by dynamically creating an application corresponding to each of a plurality of service elements, each service element including an adapter, a filter, and a logger. The filter application receives criteria specified by a user and the adapter application receives identification information corresponding to an item from a reader and provides the identification information to the filter application. The filter application processes the identification information application based on the criteria to create processed information including at least an identification code for the item and provides the processed information to the logger application. The logger application provides the processed information to a recipient. The application corresponding to each service element is monitored to determine whether any application fails.

According to another embodiment of the present invention, a system provides a distributed identification service comprising a reader service having service elements comprising an adapter that receives identification information from one or more reader based on predetermined criteria, a filter that processes the identification information based on the criteria, and a logger that provides notification of the processed information. The system further comprises a registry service that establishes the reader service and its service elements and a monitor service that determines whether the application service or any of the service elements fails.

Additional features of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed. The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate several embodiments of the invention and together with the description, serve to explain the principles of the invention. In the drawings:

FIG. 1 is a high level block diagram of an exemplary system for practicing systems and methods consistent with the present invention;

FIG. 2 depicts a computer in greater detail to show a number of the software components of an exemplary distributed system consistent with the present invention;

FIG. 3 depicts an embodiment of the discovery process in more detail, in accordance with the present invention;

FIG. 4 is a flow chart of an embodiment of the event handling process, in accordance with the present invention;

FIG. 5 is a block diagram of an exemplary operational string, in accordance with the present invention;

FIG. 6 is a block diagram of an exemplary service element, in accordance with the present invention;

FIG. 7 depicts a block diagram of a system in which a Jini™ Service Bean (JSB) provides its service to a client, in accordance with the present invention;

FIG. 8 depicts a block diagram of a cybernode in accordance with the present invention;

FIG. 9 depicts a block diagram of a system in which a cybernode interacts with a service provisioner, in accordance with the present invention;

FIG. 10 is a flow chart of Jini™ Service Bean (JSB) creation performed by a cybernode, in accordance with the present invention;

FIG. 11 is a block diagram of a service provisioner in greater detail, in accordance with the present invention;

FIG. 12 is a flow chart of dynamic provisioning performed by a service provisioner, in accordance with the present invention;

FIG. 13 is a block diagram of a system for providing an identification service, in accordance with the present invention;

FIG. 14 is a block diagram of an identification service in greater detail, in accordance with the present invention; and

FIG. 15 is a block diagram of an application service in greater detail, in accordance with the present invention.

DETAILED DESCRIPTION

The following description of embodiments of this invention refers to the accompanying drawings. Where appropriate, the same reference numbers in different drawings refer to the same or similar elements.

Introduction

Systems consistent with the present invention provide identification services over a distributed network through a collection of service components that interface with identification devices and process data received from the devices. For example, items may be uniquely identified by an electronic product code (EPC) encoded in RFID tags. A reader device may detect the presence of an RFID tag and scan the EPC and any other information contained in the RFID tag. The data may then be used by applications such as an inventory system or a retail system to track and manage the items. One such identification network is described in the Auto-ID Savant Specification 1.0, available at www.autoidcenter.org.

An identification service consistent with an embodiment of the present invention provides a distributed middleware component between reader devices and users of identification data such as applications, databases, etc. By its nature, an identification service using RFID technology is typically widely distributed. Readers may be separated by a great distance from the users of identification data. For example, an international retailer may need to track inventory in stores around the world using computer systems located in a central headquarters. In another example, a shipping company may use RFID readers throughout a series of processing facilities and transportation hubs to track shipments.

One embodiment of the present invention can be implemented using the Rio™ architecture developed by Sun Microsystems and described in greater detail below. Rio uses tools provided by the Jini™ architecture, such as discovery and event handling, to provision and monitor complex services, such as identification services, in a distributed system. Systems consistent with the present invention provide identification services that may be deployed in a distributed system, including tools to deconstruct a complex identification service into service elements, provision service elements that are needed to make up the complex identification service, and monitor the service elements to ensure that the complex identification service is supported in a dynamic, robust fashion.

Exemplary Distributed System

FIG. 1 is a high-level block diagram of an exemplary distributed system consistent with the present invention. FIG. 1 depicts a distributed system 100 that includes computers 102 and 104 and a device 106 communicating via a network 108. Computers 102 and 104 can use any type of computing platform. Device 106 may be any of a number of devices, such as a reader device, printer, fax machine, storage device, or computer. Network 108 may be, for example, a local area network, wide area network, or the Internet. Although only two computers and one device are depicted in distributed system 100, one skilled in the art will appreciate that distributed system 100 may include additional computers and/or devices.

The computers and devices of distributed system 100 provide services to one another. A “service” is a resource, data, or functionality that can be accessed by a user, program, device, or another service. Typical services include devices, such as reader devices, printers, displays, and disks; software, such as applications or utilities; and information managers, such as databases and file systems. These services may appear programmatically as objects of the Java programming environment and may include other objects, software components written in different programming languages, or hardware devices. As such, a service typically has an interface defining the operations that can be requested of that service.

FIG. 2 depicts computers 102 in greater detail to show a number of the software components of distributed system 100. One skilled in the art will recognize that computer 104 and device 106 could be similarly configured. Computer 102 contains a memory 202, a secondary storage device 204, a central processing unit (CPU) 206, an input device 208, and output device 210. Memory 202 includes a look-up service 212, a discovery server 214, and a Java runtime system 216. Java runtime system 216 includes Remote Method Invocation (RMI) process 218 and Java virtual machine (JVM) 220. Secondary storage device 204 includes a Java space 222.

Memory 202 can be, for example, a random access memory. Secondary storage device 204 can be, for example, a CD-ROM. CPU 206 can support any platform compatible with JVM 220. Input device 208 can be, for example, a keyboard or mouse. Output device 210 can be, for example, a printer.

JVM 220 acts like an abstract computing machine, receiving instructions from programs in the form of bytecodes and interpreting these bytecodes by dynamically converting them into a form for execution, such as object code, and executing them. RMI 218 facilitates remote method invocation by allowing objects executing on one computer or device to invoke methods of an object on another computer or device. Lookup Service 212 and Discovery Server 214 are described in detail below. Java space 222 is an object repository used by programs within distributed system 100 to store objects. Programs use Java space 222 to store objects persistently as well as to make them accessible to other devices within distributed system 100.

The Jini Environment

The Jini environment enables users to build and maintain a network of services running on computers and devices. Jini is an architectural framework provided by Sun Microsystems that provides an infrastructure for creating a flexible distributed system. In particular, the Jini architecture enables users to build and maintain a network of services on computers and/or devices. The Jini architecture includes Lookup Service 212 and Discovery Server 214 that enable services on the network to find other services and establish communications directly with those services.

Lookup Service 212 defines the services that are available in distributed system 100. Lookup Service 212 contains one object for each service within the system, and each object contains various methods that facilitate access to the corresponding service. Discovery Server 214 detects when a new device is added to distributed system 100 during a process known as boot and join, or discovery. When a new device is detected, Discovery Server 214 passes a reference to the new device to Lookup Service 212. The new device may then register its services with Lookup Service 212, making the device's services available to others in distributed system 100. One skilled in the art will appreciate that exemplary distributed system 100 may contain many Lookup Services and Discovery Servers.

FIG. 3 depicts an embodiment of the discovery process in more detail. This process involves a service provider 302, a service consumer 304, and a lookup service 306. One skilled in the art will recognize that service provider 302, service consumer 304, and lookup service 306 may be objects running on computer 102, computer 104, or device 106.

Service provider 302 discovers and joins lookup service 306, making the services provided by service provider 302 available to other computers and devices in the distributed system. When service consumer 304 requires a service, it discovers lookup service 306 and sends a lookup request specifying the needed service to lookup service 306. In response, lookup service 306 returns a proxy that corresponds to service provider 302 to service consumer 304. The proxy enables service consumer 304 to establish contact directly with service provider 302. Service provider 302 is then able to provide the service to service consumer 304 as needed. An implementation of the lookup service is explained in “The Jini™ Lookup Service Specification,” contained in Arnold et al., The Jini™ Specification, Addison-Wesley, 1999, pp. 217-231.

Distributed systems that use the Jini architecture often communicate via an event handling process that allows an object running on one Java virtual machine (i.e., an event consumer or event listener) to register interest in an event that occurs in an object running on another Java virtual machine (i.e., an event generator or event producer). An event can be, for example, a change in the state of the event producer. When the event occurs, the event consumer is notified. This notification can be provided by, for example, the event producer.

FIG. 4 is a flow chart of one embodiment of the event handling process. An event producer that produces event A registers with a lookup service (step 402). When an event consumer sends a lookup request-specifying event A to the lookup service (step 404), the lookup service returns a proxy for the event producer for event A to the event consumer (step 406). The event consumer uses the proxy to register with the event producer (step 408). Each time the event occurs thereafter, the event producer notifies the event consumer (step 410). An implementation of Jini event handling is explained in “The Jini™ Distributed Event Specification,” contained in Arnold et al., The Jini™ Specification, Addison-Wesley, 1999, pp. 155-182.

Overview of Rio™ Architecture

The Rio architecture enhances the basic Jini architecture to provision and monitor complex services by considering a complex service as a collection of service elements. To provide the complex service, the Rio architecture instantiates and monitors a service instance corresponding to each service element. A service element might correspond to, for example, an application service or an infrastructure service. In general, an application service is developed to solve a specific application problem, such as processing identification information, word processing, or spreadsheet management. An infrastructure service, such as the Jini lookup service, provides the building blocks on which application services can be used. One implementation of the Jini lookup service is described in U.S. Pat. No. 6,185,611, for “Dynamic Lookup Service in a Distributed System,” which is incorporated herein by reference.

Consistent with the present invention, a complex service can be represented by an operational string. FIG. 5 depicts an exemplary operational string 502 that includes one or more service elements 506 and another operational string B 504. Operational string B 504 in turn includes additional service elements (3, 4, . . . n) 506. For example, operational string 502 might represent an identification service. Service element 1 might be an interface with a reader device and service element 2 might be an interface with a user of identification data. Operational string B might be a service to process data received from the reader device. Service element 3 might then be a filter to remove unnecessary data, service element 4 might be a queue storing filtered data, etc. In an embodiment of the present invention, an operational string can be expressed as an XML document. It will be clear to one of skill in the art that an operational string can contain any number of service elements and operational strings.

FIG. 6 is a block diagram of a service element in greater detail. A service element contains instructions for creating a corresponding service instance. In one implementation consistent with the present invention, service element 506 includes a service provision management object 602 and a service bean attributes object 604. Service provision management object 602 contains instructions for provisioning and monitoring the service that corresponds to service element 506. For example, if the service is a software application, these instructions may include the requirements of the software application, such as hardware requirements, response time, throughput, etc. Service bean attributes object 604 contains instructions for creating an instance of the service corresponding to service element 506. In one implementation consistent with the present invention, a service instance is referred to as a Jini™ Service Bean (JSB).

Jini™ Service Beans

A Jini™ Service Bean (JSB) is a Java object that provides a service in a distributed system. As such, a JSB implements one or more remote methods that together constitute the service provided by the JSB. A JSB is defined by an interface that declares each of the JSBs remote methods using Jini™ Remote Method Invocation (RMI) conventions. In addition to its remote methods, a JSB may include a proxy and a user interface consistent with the Jini architecture.

FIG. 7 depicts a block diagram of a system in which a JSB provides its service to a client. This system includes a JSB 702, a lookup service 704, and a client 706. When JSB 702 is created, it registers with lookup service 704 to make its service available to others in the distributed system. When a client 706 needs the service provided by JSB 702, client 706 sends a lookup request to lookup service 702 and receives in response a proxy 708 corresponding to JSB 702. Consistent with an implementation of the present invention, a proxy is a Java object, and its types (i.e., its interfaces and superclasses) represent its corresponding service. For example, a proxy object for a reader device would implement a reader device interface. Client 706 then uses JSB proxy 708 to communicate directly with JSB 702 via a JSB interface 710. This communication enables client 706 to obtain the service provided by JSB 702. Client 706 may be, for example, a process running on computer 102, and JSB 702 may be, for example, a process running on device 106.

Cybernode Processing

A JSB is created and receives fundamental life-cycle support from an infrastructure service called a “cybernode.” A cybernode runs on a compute resource, such as a computer or other data processing device. In one embodiment of the present invention, a cybernode runs as a Java virtual machine, such as JVM 220, on a computer, such as computer 102. Consistent with the present invention, a compute resource may run any number of cybernodes at a time and a cybernode may support any number of JSBs.

FIG. 8 depicts a block diagram of a cybernode. Cybernode 801 includes service instantiator 802 and service bean instantiator 804. Cybernode 801 may also include one or more JSBs 806 and one or more quality of service (QoS) capabilities 808. QoS capabilities 808 represent the capabilities, such as CPU speed, disk space, connectivity capability, bandwidth, etc., of the compute resource on which cybernode 801 runs.

Service instantiator object 802 is used by cybernode 801 to register its availability to support JSBs and to receive requests to instantiate JSBs. For example, using the Jini event handling process, service instantiator object 802 can register interest in receiving service provision events from a service provisioner, discussed below. A service provision event is typically a request to create a JSB. The registration process might include declaring QoS capabilities 808 to the service provisioner. These capabilities can be used by the service provisioner to determine what compute resource, and therefore what cybernode, should instantiate a particular JSB, as described in greater detail below. In some instances, when a compute resource is initiated, its capabilities are declared to the cybernode 801 running on the compute resource and stored as QoS capabilities 808.

Service bean instantiator object 804 is used by cybernode 801 to create JSBs 806 when service instantiator object 804 receives a service provision event. Using JSB attributes contained in the service provision event, cybernode 801 instantiates the JSB, and ensures that the JSB and its corresponding service remain available over the network. Service bean instantiator object 804 can be used by cybernode 801 to download JSB class files from a code server as needed.

FIG. 9 depicts a block diagram of a system in which a cybernode interacts with a service provisioner. This system includes a lookup service 902, a cybernode 801, a service provisioner 906, and a code server 908. As described above, cybernode 801 is an infrastructure service that supports one or more JSBs. Cybernode 801 uses lookup service 902 to make its services (i.e., the instantiation and support of JSBs) available over the distributed system. When a member of the distributed system, such as service provisioner 906, needs to have a JSB created, it discovers cybernode 801 via lookup service 902. In its lookup request, service provisioner 906 may specify a certain capability that the cybernode should have. In response to its lookup request, service provisioner 906 receives a proxy from lookup service 902 that enables direct communication with cybernode 801.

FIG. 10 is a flow chart of JSB creation performed by a cybernode. A cybernode, such as cybernode 801, uses lookup service 902 to discover one or more service provisioners 906 on the network (step 1002). Cybernode 801 then registers with service provisioners 906 by declaring the QoS capabilities corresponding to the underlying compute resource of cybernode 801 (step 1004). When cybernode 801 receives a service provision event containing JSB requirements from service provisioner 906 (step 1006), cybernode 801 may download class files corresponding to the JSB requirements from code server 908 (step 1008). Code server 908 may be, for example, a HyperText Transfer Protocol (HTTP) server. Cybernode 801 then instantiates the JSB (step 1010).

As described above, JSBs and cybernodes comprise the basic tools to provide a service corresponding to a service element in an operational string consistent with the present invention. A service provisioner for managing the operational string itself will now be described.

Dynamic Service Provisioning

A service provisioner is an infrastructure service that provides the capability to deploy and monitor operational strings. As described above, an operational string is a collection of service elements that together constitute a complex service in a distributed system. To manage an operational string, a service provisioner determines whether a service instance corresponding to each service element in the operational string is running on the network. The service provisioner dynamically provisions an instance of any service element not represented on the network. The service provisioner also monitors the service instance corresponding to each service element in the operational string to ensure that the complex service represented by the operational string is provided correctly.

FIG. 11 is a block diagram of a service provisioner in greater detail. Service provisioner 906 includes a list 1102 of available cybernodes running in the distributed system. For each available cybernode, the QoS attributes of its underlying compute resource are stored in list 1102. For example, if an available cybernode runs on a computer, then the QoS attributes stored in list 1102 might include the computers CPU speed or storage capacity. Service provisioner 406 also includes one or more operational strings 1104.

FIG. 12 is a flow chart of dynamic provisioning performed by a service provisioner. Service provisioner 906 obtains an operational string consisting of any number of service elements (step 1202). The operational string may be, for example, operational string 502 or 504. Service provisioner 906 may obtain the operational string from, for example, a programmer wishing to establish a new service in a distributed system. For the first service in the operational string, service provisioner 906 uses a lookup service, such as lookup service 902, to discover whether an instance of the first service is running on the network (step 1204). If an instance of the first service is running on the network (step 1206), then service provisioner 906 starts a monitor corresponding to that service element (step 1208). The monitor detects, for example, when a service instance fails. If there are more services in the operational string (step 1210), then the process is repeated for the next service in the operational string.

If an instance of the next service is not running on the network (step 1206), then service provisioner 906 determines a target cybernode that matches the next service (step 1212). The process of matching a service instance to a cybernode is discussed below. Service provisioner 906 fires a service provision event to the target cybernode requesting creation of a JSB to perform the next service (step 1214). In one embodiment, the service provision event includes service bean attributes object 604 from service element 506. Service provisioner 906 then uses a lookup service to discover the newly instantiated JSB (step 1216) and starts a monitor corresponding to that JSB (step 1208).

Once a service instance is running, service provisioner 906 monitors it and directs its recovery if the service instance fails for any reason. For example, if a monitor detects that a service instance has failed, service provisioner 906 may issue a new service provision event to create a new JSB to provide the corresponding service. In one embodiment of the present invention, service provisioner 906 can monitor services that are provided by objects other than JSBs. The service provisioner therefore provides the ability to deal with damaged or failed resources while supporting a complex service.

Service provisioner 906 also ensures quality of service by distributing a service provision request to the compute resource best matched to the requirements of the service element. A service, such as a software component, has requirements, such as hardware requirements, response time, throughput, etc. In one embodiment of the present invention, a software component provides a specification of its requirements as part of its configuration. These requirements are embodied in service provision management object 602 of the corresponding service element. A compute resource may be, for example, a computer or a device, with capabilities such as CPU speed, disk space, connectivity capability, bandwidth, etc.

In one implementation consistent with the present invention, the matching of software component to compute resource follows the semantics of the Class.isAssignable( )method, a known method in the Java programming language. If the class or interface represented by QoS class object of the software component is either the same as, or is a superclass or superinterface of, the class or interface represented by the class parameter of the QoS class object of the compute resource, then a cybernode resident on the compute resource is invoked to instantiate a JSB for the software component. Consistent with the present invention, additional analysis of the compute resource may be performed before the “match” is complete. For example, further analysis may be conducted to determine the compute resource's capability to process an increased load or adhere to service level agreements required by the software component.

Enhanced Event Handling

Systems consistent with the present invention may expand upon traditional Jini event handling by employing flexible dispatch mechanisms selected by an event producer. When more than one event consumer has registered interest in an event, the event producer can use any policy it chooses for determining the order in which it notifies the event consumers. The notification policy can be, for example, round robin notification, in which the event consumers are notified in the order in which they registered interest in an event, beginning with the first event consumer that registered interest. For the next event notification, the round robin notification will begin with the second event consumer in the list and proceed in the same manner. Alternatively, an event producer could select a random order for notification, or it could reverse the order of notification with each event.

In an embodiment of the present invention, a service provisioner is an event producer and cybernodes register with it as event consumers. When the service provisioner needs to have a JSB instantiated to complete an operational string, the service provisioner fires a service provision event to all of the cybernodes that have registered, using an event notification scheme of its choosing.

Identification Service

FIG. 13 is a block diagram of one embodiment of the present invention that leverages the capabilities of the Jini and Rio systems to provide an identification service in a distributed network. One or more readers 1302 may detect and scan RFID tags that come within a predetermined range of a reader. The RFID tag may include data, including, for example, an electronic product code (EPC) identifying an item. The RFID data may also include, for example, a location of the reader, a data/time the tag was read, and an identifier of the reader. Reader 1302 may capture this data and transmit it to an identification service 1304, which may process the data and provide it to users 1306. Users 1306 may be, for example, client applications, web service applications, or databases that manage and store the processed data.

Readers 1302 may be, for example, any type of device that reads or senses data, such as identification data. For example, readers 1302 may be conventional RFID readers such as the Alien Nanoscanner Reader, the ThingMagic Mercury 3 RFID Reader, or the Matrics Advanced Reader. A large identification system may have hundreds or even thousands of readers, so readers 1302 are typically simple, inexpensive devices that perform only basic data processing. Identification service 1304 may provide extensive data processing to transform the largely untouched scanned data from readers 1302 into useful data customized to meet the preferences and requirements of individual users 1306. One skilled in the art will appreciate that the system of FIG. 13 may include any number of readers 1302, identification services 1304, and users 1306. Readers 1302 may also include devices that sense data, such as motion sensors, proximity sensors, or temperature sensors. Other types of devices may also be used without departing from the spirit and scope of the present invention.

FIG. 14 is a block diagram showing identification service 1304 in greater detail. As shown in FIG. 13, identification service 1304 may include components such as reader services 1402 and application service 1404. In one embodiment, reader services 1402 may include interfaces to control, manage, and secure devices such as readers 1302. In this embodiment, application service 1404 may include interfaces to customize data for and communicate with users 1306.

Identification service 1304 may also include a monitor service 1406, a registry service 1408, and a code server 1410 to support the provisioning of service components for identification service 1304. In one embodiment of the present invention, monitor service may be a Rio™ monitor implemented, for example, by service provisioner 906. As discussed above, a Rio™ monitor may detect when a service fails to ensure robust service provision. In this embodiment, registry service 1408 may be implemented as a Jini lookup service 212, described above, that enables services to establish communications with other services, and code server 1410 may be implemented as a code server 908, described above, that stores Java code files. Although FIG. 14 shows two reader services 1402, one application service 1404, one monitor service 1406, one registry service 1408, and one code server 1410, one skilled in the art will appreciate that identification service 1304 may have any number, including zero, of each of these components. In addition, readers 1302 may be adapted to run reader services 1402 and application service 1404 instead of identification service 1304.

Using the Rio architecture, identification service 1304 may be implemented using an operational string as described above. Service elements of the operational string may be reader service 1402 and application service 1404. In this way, monitor service 1406, registry service 1408, and code server 1410 may be used to provision and monitor identification service 1304 to ensure a robust and flexible distributed implementation.

FIG. 15 is a block diagram of application service 1404 in greater detail. Application service 1404 may be implemented as a JSB and may include software components such as an adapter 1502, an event filter 1504, a report filter 1505, and a logger 1506. Although one adapter 1503 is shown, application service 1404 may include multiple adapters 1503, each one corresponding to a reader service 1402 receiving RFID data. Similarly, although one logger 1506 is shown, application service 1404 may include multiple loggers 1506, each one corresponding to a report subscription registered by a user 1306. Data filter 1504 may process the data received from adapter 1503, and logger 1506 may communicate the processed data to a user 1306. One skilled in the art will appreciate that these components may be linked together in the order shown or in any other order. In an alternative embodiment, reader service 1402 may include a queue (not pictured) as described below.

Application service 1404 may receive a report definition from users 1306. Users 1306 may use a web interface, such as an enterprise gateway (not shown) to generate report definitions and subscribe to reports generated by a report definition. For example, a user may define a report that provides notification of a number of items at a particular location, the location of a specific item, or the path an item has taken. A report definition derived from user input may be an XML based report definition. Based on criteria specified in an XML based report definition, one or more adapters 1502, data filter 1504, report filter 1505, and one or more loggers 1506 may be generated during run time.

Adapter 1503 may be, for example, a service element for interfacing with a reader service 1402. Adapter 1503 may receive RFID data from reader services 1402 as an event consumer using the enhanced event handling described above. This increases the feasibility and economy of identification service 1304. Adapter 1503 may function as an event listener (e.g., for data from readers) and/or an event producer (e.g., for data for a filter) using the enhanced event handling described above. An adapter may include a unique name, a Java class that implements the adapter, a set of properties, and a set of outputs. The properties may be, for example, a sequence of name value pairs that are passed to the adapter's constructor. The outputs may be, for example, a sequence of component names to be registered as event listeners to the adapter. The outputs may designate, for example, filter 1504, logger 1506, or a queue (not shown).

Criteria in a report definition may include reader identities, which may correspond to physical readers and/or logical readers. A logical reader identity may correspond to one or more physical reader identities. A user may wish to specify a logical reader when, for example, identities of physical readers are unknown or have been changed due to replacement. A logical reader identity may also be specified when it is possible to discern a physical location of an item by triangulating results from several physical readers. In such cases, a unique logical reader identity may correspond to each discernible location. Reader services 1402 may continually monitor registry service 1408 to discover physical and logical reader identities and maintain a list of discovered reader identities. Thus, application service 1404 may include one or more adapters 1503 for receiving RFID data from the reader services 1402 that support reader identities specified in a report definition.

Data filter 1504 may be used to process RFID data received from readers 1302. Data filter 1504 may include a unique name, a Java™ class that implements the filter, a set of properties, and a set of outputs. The properties may be, for example, a sequence of name value pairs that are passed to the filter's constructor. The outputs may be, for example, a sequence of component names that will be registered as event listeners to the filter. The outputs may designate, for example, report filter 1505.

Data filter 1504 may process RFID data received from reader 1302 based on criteria specified in a report definition (i.e., instructions), which may come from or on behalf of user 1306. Criteria specified in the report definition may include identification code patterns and external triggers. Identification code patterns may be used to include or exclude identification codes that match the specified identification code patterns. External triggers may include start and stop triggers for defining a period of time in which RFID data is collected (i.e., an “event cycle”). Alternatively, an event cycle may be defined by a start trigger and a duration. A report definition may specify start and stop triggers as Universal Resource Identifiers (URIs). Valid URIs may include Java Message Service (JMS) URIs, HTTP URIs, file URIs, and TCP URIs. A URI may specify an EPC pattern so that RFID data collection is triggered to start and/or stop upon detecting a match for the specified EPC pattern. An exemplary payload of a URI for a start trigger or a stop trigger may be an XML document such as, <Trigger fired=“true”/> or <Trigger fired=“false”/>. If a URI is not specified, a default may be to continually collect data until detection of a predetermined event.

RFID tags generate a much larger amount of data than traditional bar codes, much of which is often considered to be “noise,” meaning that it is of little or no use. Therefore, in addition to filtering data specified in a report definition, data filter 1504 may be designed to automatically filter out data from mis-read RFID tags and noise. Such automatic filtering may increase the accuracy of the resulting data.

Data filter 1504 may link to report filter 1505 using the enhanced event handling described above. Like data filter 1504, report filter 1505 may include a unique name, a Java™ class that implements the filter, a set of properties, and a set of outputs. The properties may be, for example, a sequence of name value pairs that are passed to the filter's constructor. The outputs may be, for example, a sequence of component names that will be registered as event listeners to the filter. The outputs may designate, for example, other filters 1504, logger 1506, or queue (not shown).

The processed data received from data filter 1504 may be a list of RFID tags and a list of readers that produced the RFID tags. Therefore, report filter 1505 may organize the processed data according to criteria specified in a report definition. The criteria may include a report set definition and a report output definition. A report set definition may define a set of EPCs to be considered for reporting. For example, a set of reported EPCs may be all currently read EPCs, additions from a previous event cycle, or deletions from a previous event cycle. A report output definition may define whether to include a list of EPCs in the report and whether to calculate and include a total number of EPCs in the report.

Logger 1506 may be implemented to notify users 1306 of reports of data from readers 1302 and may function as an event listener (e.g., for data from filters) and/or an event producer (e.g., for data for users). Logger 1506 may also be configured to transmit reports to users 1306 of RFID and non-RFID events using a protocol specified by individual users 1306, for example, by logging information to a file system, a JMS queue, a TCP socket, or a XML/HTTP file. For example, when a user 1306 registers a report subscription, an appropriate logger 1506 may be created during run time and dynamically linked to report filter 1505. Similarly, when a report subscription is removed by a user 1306, the corresponding logger 1506 may be terminated and disconnected from report filter 1505. Logger 1506 may include, for example, a unique name, a Java™ class that implements the logger, and a set of properties. The properties may be, for example, a sequence of name value pairs that are passed to the logger's constructor.

A report definition specifying criteria for adapter 1503, data filter 1504, report filter 1505, and logger 1506 may be expressed using, for example, an XML document. The following is program code for an exemplary report definition written as an XML document:

<?xml version=“1.0” encoding=“UTF-8”?>

<ale:ECSpec xmlns:ale=“urn.epcglobal:ale:xsd:1”

-   -   xmlns:epcglobal=“urn:epcglobal:xsd:1”     -   xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”     -   xsi:schemaLocation=“urn:epcglobal:ale:xsd:1 Ale.xsd”     -   schemaVersion=“1.0”     -   creationDate=“2003-08-06T10:54:06.444-05:00”>

<logicalReaders>

-   -   <logicalReader>Dock Door1</logicalReader>

</logicalReaders>

<boundarySpec>

-   -   <startTrigger>urn:epc:pat:gid-96:*.*.*</startTrigger>     -   <duration unit=“MS”>60000</duration>

</boundarySpec>

<reportSpecS>

-   -   <reportSpec reportName=“report1”>     -   <reportSet set=“CURRENT”/>     -   <output includeList=“true”/>         </reportSpec>         <reportSpec reportName=“report2”>

<reportSet set=“ADDITIONS”/>

<output includeCount=“true”/>

</reportSpec>

</reportSpecs>

</ale:ECSpec>

In this exemplary code, the report definition is referred to as an Event Cycle Specification (ECSpec). The report definition above includes a section for specifying logical readers (e.g., “Dock Door 1”). The report definition also includes a section for specifying an event cycle temporal boundary (e.g., start trigger URI and duration of 60000 milliseconds). Finally, it includes a section for specifying data to be included in a report (e.g., ADDITIONS, meaning EPCs not read in a previous event cycle) and an indication to include a count of a total number of EPCs in the report.

Because adapter 1503, data filter 1504, report filter 1505, and logger 1506 may be implemented as event handler components, their component properties may be pre-configured with report definition criteria. In this manner, adapter 1503, data filter 1504, report filter 1505, and logger 1506 may be permanently associated with a particular reader 1302. The following is program code written as an XML document for an exemplary configuration file to support an application service 1404 permanently associated with a particular reader 1302:

-   -   <ems:adapter>         -   <ems:name>Matrics Reader</ems:name>         -   <ems:     -   classname>com.sun.autoid.adapter.matrics.MatricsReaderAdapter</ems:classn         ame>     -   .     -   .         -   <ems:outputs>             -   <ems:output>ALE</ems:output>         -   </ems:outputs>     -   </ems:adapter>     -   <ems:filter>         -   <ems:name>ALE</ems:name>         -   <ems:classname>com.sun.autoid.ale.AleEventFilter</ems:classname>         -   <ems:properties>             -   <ems:property>LogLevel</ems:property>             -   <ems:value>CONFIG</ems:value>         -   </ems:properties>         -   <ems:properties>             -   <ems:property>startTrigger</ems:property>             -   <ems:value>urn:epc:pat:gid-96:*.*.*</ems:value>         -   </ems:properties>         -   <ems:properties>             -   <ems: property>duration</ems:property>             -   <ems:value>60000</ems:value>         -   </ems:properties>         -   <ems:outputs>             -   <ems:output>ALEReport</ems:output>         -   </ems:outputs>     -   </ems:filter>     -   <ems:filter>         -   <ems:name>ALEReport</ems:name>         -   <ems:classname>com.sun.autoid.ale.AleEventReportFilter</ems:classna             me>         -   <ems:properties>             -   <ems:property>LogLevel</ems:property>             -   <ems:value>CONFIG</ems:value>         -   </ems:properties>         -   <ems:properties>             -   <ems:property>ReportName</ems:property>             -   <ems:value>report1</ems:value>         -   </ems:properties>         -   <ems:properties>             -   <ems:property>ReportSet</ems:property>             -   <ems:value>CURRENT</ems:value>         -   </ems:properties>         -   <ems:properties>             -   <ems:property>OutputSpecIncludeList</ems:property>             -   <ems:value>true</ems:value>         -   </ems:properties>         -   <ems:outputs>             -   <ems:output>ALEOutput</ems:output>         -   </ems:outputs>     -   </ems:filter>     -   <ems:logger>         -   <ems:name>ALEOutput</ems:name>         -   <ems:classname>com.sun.autoid.ale.AleJMsReportLogger</ems:classna             me>         -   <ems:properties>             -   <ems:property>LogLevel</ems:property>             -   <ems:value>CONFIG</ems:value>         -   </ems:properties>         -   <ems:properties>             -   <ems:property>NotificationURI</ems:property>             -   <ems:value>jms:/topic/com.sun.jndi.fscontext.RefFSContextFactor                 y/epcis</ems:value>         -   </ems:properties>     -   </ems:logger>

In this exemplary code, the adapter section specifies a particular reader (e.g., Matrics Reader). The first filter section specifies report definition criteria for a data filter (e.g., a start trigger URI and a duration). The second filter section specifies report definition criteria for a report filter (e.g., CURRENT, meaning EPCs read in a current event cycle) and an indication to include a list of EPCs in the report. The logger section specifies a notification URI (e.g., a JMS queue).

The foregoing description of an implementation of the invention has been presented for purposes of illustration and description. It is not exhaustive and does not limit the invention to the precise form disclosed. Modifications and variations are possible in light of the above teachings or may be acquired from practicing of the invention. Additional modifications and variations of the invention may be, for example, the described implementation includes software but the present invention may be implemented as a combination of hardware and software or in hardware alone. The invention may be implemented with both object-oriented and non-object-oriented programming systems.

For example, identification services consistent with the present invention may be implemented using, for example, the Java Management Extensions (JMX) technology to provide identification services that are accessible by management and monitoring applications. JMX Managed Beans may be created to implement components of the identification service and may be registered with a Jini lookup service. In this way, the JMX Managed Beans could be discovered and accessed by management applications. The JMX technology is described further at http://java.sun.com/products/JavaManagement/. The JMX technology may be implemented, for example, using the Java Dynamic Management Kit (JDMK).

Identification services consistent with embodiments of the present invention may also be implemented using Simple Network Management Protocol (SNMP) Management Beans that may be accessible to network management systems such as Openview, Tivoli, and BMC Patrol. In this way, an identification service may be provided with unique management and monitoring capabilities.

Furthermore, one skilled in the art would recognize the ability to implement the present invention in many different situations. For example, the present invention can be applied to the telecommunications industry. A complex service, such as a telecommunications customer support system, may be represented as a collection of service elements such as customer service phone lines, routers to route calls to the appropriate customer service entity, and billing for customer services provided. The present invention could also be applied in any event processing system. 

1. A method comprising: dynamically creating, at a first computer resource of a distributed system, the first computer resource being configured as an identification service, an instance of a service element upon discovery of a reader in the distributed system, the service element comprising at least one of an adapter, a filter, and a logger, the reader operable to obtain identification data with at least one of a scanner and a sensor; receiving, by the filter, criteria in accordance with predetermined instructions; receiving, by the adapter, identification data from one or more readers identified by the criteria; providing the identification data from the adapter to the filter; processing the identification data by the filter, wherein the filter is a data filter for at least one of removing identification data which does not match the criteria and removing noise data from the identification data; providing notification, by the logger, of the processed data; monitoring the service element(s) to determine whether any service element fails; and re-establishing communication with the application corresponding to the service element, wherein the monitoring further comprises, for each of the service element(s), determining whether an application corresponding to the service element is running in the distributed system and creating the application corresponding to the service element, if the application corresponding to the service element is not running in the distributed system, and wherein at least one of the following is carried out using an event handling protocol wherein data is transmitted as an event: the receiving of the identification data, the providing of the identification data to the filter, and the providing the notification of the processed data.
 2. The method of claim 1, wherein the processing further comprises: extracting an identification code from the identification data, and wherein the processed data includes the identification code.
 3. The method of claim 2, wherein the identification code is an electronic product code (EPC).
 4. The method of claim 1, wherein the reader comprises a Radio Frequency Identification (RFID) tag reader and the identification data represents RFID tag data.
 5. The method of claim 1, wherein the criteria includes a start trigger definition and a stop trigger definition to define a period of time for processing the identification data by the filter.
 6. The method of claim 5, wherein the start trigger definition includes a first identification data pattern that, if detected by the reader, signals the filter to start processing the identification data and the stop trigger definition includes a second identification data pattern that, if detected by the reader, signals the filter to stop processing the identification data.
 7. The method of claim 1, wherein the adapter wirelessly receives the identification data from the readers through a wireless communication network.
 8. A method comprising: dynamically creating, at a first computer resource of a distributed system, the first computer resource being configured as an identification service, an instance of a plurality of service elements upon discovery of a reader in the distributed system, the plurality of service elements comprising an adapter, a filter, and a logger, the reader operable to obtain identification data with at least one of a scanner and a sensor; receiving, by the filter application, criteria specified by a user; receiving, by the adapter application, identification information corresponding to an item from one or more readers identified in the criteria; providing the identification information from the adapter application to the filter application; processing the identification information by the filter application to create processed information including at least an identification code for the item, wherein the filter is a data filter for at least one of removing identification data which does not match the criteria and removing noise data from the identification data; providing the processed information from the filter application to the logger application; providing the processed information to a user by the logger application; monitoring the applications corresponding to each service element to determine whether any application fails, wherein the monitoring further comprises, for each of the service element(s): determining whether an application corresponding to the service element is running in the distributed system and creating the application corresponding to the service element, if the application corresponding to the service element is not running in the distributed system; and re-establishing communication with the application corresponding to the service element, wherein at least one of the following is carried out using an event handling protocol wherein data is transmitted as an event: the receiving of the identification data, the providing of the identification data to the filter, and the providing the notification of the processed data.
 9. The method of claim 8, wherein dynamically creating further includes: downloading code for an application corresponding to each service element from a code server in the distributed system; and registering the application corresponding to each service element with a registry service in the distributed system.
 10. The method of claim 8, wherein the identification information further includes at least one of: a location of the item, a time the identification information was read from the item, a date the identification information was read from the item, an identifier of the reader, and a location of the reader.
 11. The method of claim 8, wherein the reader comprises a Radio Frequency Identification (RFID) tag reader.
 12. The method of claim 8, wherein the identification code is an electronic product code (EPC).
 13. The method of claim 8, further comprising: formatting the processed data based on the criteria.
 14. The method of claim 8, wherein the adapter wirelessly receives the identification data from the readers through a wireless communication network.
 15. A system comprising: a first computer resource of a distributed system configured as an application service having service elements comprising: an adapter that receives information from one or more readers in the distributed system based on predetermined criteria, a data filter that processes the identification information, wherein the data filter performs at least one of removes identification data which does not match the criteria and removes noise data from the identification data; a logger that provides notification of the processed information, the logger storing processed information on a computer readable medium; a registry service that establishes the application service and its service elements, the registry service dynamically creating an instance of a service element upon discovery of each reader in the distributed system, each reader operable to obtain identification data with at least one of a scanner and a sensor; and a monitor service that determines whether the reader service or any of its service elements fails, wherein the monitor service, for each of the service elements, determines whether an application corresponding to the service element is running in the distributed system and creates the application corresponding to the service element, if the application corresponding to the service element is not running in the distributed system, wherein, after the monitor service determines a failure of a reader service or any of its service elements, communication with the application corresponding to the service element is re-established, and wherein at least one of the following is carried out using an event handling protocol wherein data is transmitted as an event: the receiving of the identification data, the providing of the identification data to the filter, and the providing the notification of the processed data.
 16. The system of claim 15, further comprising: a code server containing code for use in establishing the application service and its service elements.
 17. The system of claim 15, wherein the one or more readers are Radio Frequency Identification (RFID) tag readers.
 18. The system of claim 15, wherein the one or more readers are configured to read the identification information from an item, and the identification information includes an identification code for the item.
 19. The system of claim 18, wherein the identification code is an electronic product code (EPC).
 20. The system of claim 15, wherein the user is an application.
 21. The system of claim 15, wherein the application service further comprises a report filter for generating a report of the processed data based on the predetermined criteria.
 22. The system of claim 21, further comprising a queue for holding the report generated by the report filter, wherein the logger provides notification of the processed information in an XML file transmitted to the queue.
 23. The system of claim 15, wherein the predetermined criteria includes a poll request and the logger provides notification the user of the processed information in response to the poll request.
 24. The method of claim 15, wherein the predetermined criteria includes a start trigger definition and a stop trigger definition to define a period of time for processing the identification data by the data filter.
 25. The method of claim 24, wherein the start trigger and stop trigger are universal resource identifiers (URIs).
 26. The method of claim 15, wherein the predetermined criteria identifies the one or more readers.
 27. The method of claim 15, wherein the adapter receives the identification data from the readers through a wireless communication network. 